import axios from "@/utils/axios";

//获取所有项目
export const getAllProject = () => axios.post("/base/depart/getAllDeptAndPro");

// 根据体检项目获取常见结果
export const getTableList = (data) =>
  axios.post("/base/commonResults/queryCommonResultsWithPage", data);

// 新增或编辑
export const addOrUpdate = (data) =>
  axios.post("/base/commonResults/insertOrUpdate", data);

// 删除单条
export const delrow = (commonResultId) =>
  axios.delete(`/base/commonResults/delete/${commonResultId}`);

// 通过项目id查询建议列表
export const getAdviceList = (projectId) =>
  axios.get(`/base/diagnostic/findProjectIdList/${projectId}`);
